package com.itheima.skyserver.service;

import com.itheima.skyserver.pojo.domain.Category;
import com.itheima.skyserver.result.PageResult;

import java.util.List;

public interface CategoryService {
    PageResult page(String name, Integer page, Integer pageSize, Integer type);

    void setStatus(Integer status, Long id);

    void insertCategory(Category category);

    void deleteCategoryById(Integer id);

    List<Category> list(Integer type);

    void updateCategory(Category category);
}
